package com.iot.websocket.message;

import com.iot.common.enums.BizCode;
import com.iot.websocket.Topic;
import com.iot.websocket.WebSocketMessage;

/**
 * 电池电压消息
 */
public class VbatMessage extends WebSocketMessage {

    private String clientNo;

    public VbatMessage() {
        this.setBizCode(BizCode.COMMON.getCode());
    }

    public static VbatMessage getInstance(String topic, String clientNo, String result){
        VbatMessage instance = new VbatMessage();
        instance.clientNo = clientNo;
        instance.setTopic(topic);
        instance.setData(result);
        return instance;
    }

    public String getClientNo() {
        return this.clientNo;
    }
}
